package com.syq.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class News implements Serializable {
    private String nno;

    private String ano;

    private String nname;

    private String nimg;

    private String nstate;

    private String ndesc;

    private String ntitle;

    private static final long serialVersionUID = 1L;

    public String getNno() {
        return nno;
    }

    public void setNno(String nno) {
        this.nno = nno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getNname() {
        return nname;
    }

    public void setNname(String nname) {
        this.nname = nname;
    }

    public String getNimg() {
        return nimg;
    }

    public void setNimg(String nimg) {
        this.nimg = nimg;
    }

    public String getNstate() {
        return nstate;
    }

    public void setNstate(String nstate) {
        this.nstate = nstate;
    }

    public String getNdesc() {
        return ndesc;
    }

    public void setNdesc(String ndesc) {
        this.ndesc = ndesc;
    }

    public String getNtitle() {
        return ntitle;
    }

    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        News other = (News) that;
        return (this.getNno() == null ? other.getNno() == null : this.getNno().equals(other.getNno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getNname() == null ? other.getNname() == null : this.getNname().equals(other.getNname()))
            && (this.getNimg() == null ? other.getNimg() == null : this.getNimg().equals(other.getNimg()))
            && (this.getNstate() == null ? other.getNstate() == null : this.getNstate().equals(other.getNstate()))
            && (this.getNdesc() == null ? other.getNdesc() == null : this.getNdesc().equals(other.getNdesc()))
            && (this.getNtitle() == null ? other.getNtitle() == null : this.getNtitle().equals(other.getNtitle()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNno() == null) ? 0 : getNno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getNname() == null) ? 0 : getNname().hashCode());
        result = prime * result + ((getNimg() == null) ? 0 : getNimg().hashCode());
        result = prime * result + ((getNstate() == null) ? 0 : getNstate().hashCode());
        result = prime * result + ((getNdesc() == null) ? 0 : getNdesc().hashCode());
        result = prime * result + ((getNtitle() == null) ? 0 : getNtitle().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", nno=").append(nno);
        sb.append(", ano=").append(ano);
        sb.append(", nname=").append(nname);
        sb.append(", nimg=").append(nimg);
        sb.append(", nstate=").append(nstate);
        sb.append(", ndesc=").append(ndesc);
        sb.append(", ntitle=").append(ntitle);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}